

export const reducers = (state,action)=>{
    const {type,payload} = action
    switch(type){
      case "changeCount":
      return state.update('count',x=>x+1)
      break;

      case "changecollapsed":
      return state.set("collapsed",payload)
      break;

      case "changeBanjiList":
      return state.set("banjiList",payload)
      break;
  
      case "changePathname":
      return state.set("pathname",payload)
      break;

      
      

      default:
        return state;
      break;
    }
}